package org.skill.btn;

import java.awt.event.MouseEvent;

import org.skill.panel.SkillMainPanel;

import com.tool.btn.MoBanBtn;

public class SkillMainBtn extends MoBanBtn {

    /**
     * 1是师门未选中<br>
     * 2是师门已选中 <br>
     * 3天演策没选中 <br>
     * 4是天演策已选中 <br>
     * 5其他未选中<br>
     * 6其他已选中 <br>
     * 7师门无法选中<br>
     */
    /** 0师门 1天演策 2法门 3其他 */
    private int typeBtn;
    private SkillMainPanel mainPanel;

    public SkillMainBtn(String iconpath, int type, int typeBtn, SkillMainPanel mainPanel) {
        super(iconpath, type);
        this.typeBtn = typeBtn;
        this.mainPanel = mainPanel;
    }


    @Override
    public void chooseyes() {
    }

    @Override
    public void chooseno() {
    }

    @Override
    public void nochoose(MouseEvent e) {
        mainPanel.changeBtnPanel(typeBtn);
    }

}
